<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RoleList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.RoleList" %>
<div class="frame">
<div style="text-align:center;height:20px;width:600px">
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
</div>
<br />
<asp:GridView runat="server" ID="gvRole" AutoGenerateColumns="False" >
        <Columns>
            <asp:TemplateField HeaderText="Name"> 
                <ItemTemplate >
                    <asp:Label runat="server" ID="lblName" Text='<% #DataBinder.Eval(Container,"DataItem.Name") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Description"> 
                <ItemTemplate >
                    <asp:Label runat="server" ID="lblDescription" Text='<% #DataBinder.Eval(Container,"DataItem.Description") %>' />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Action">
                <ItemTemplate>
                    <asp:ImageButton ID="imgEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' OnClick="imgEdit_Click" />
                    <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' OnClick="imgDelete_Click" />
                </ItemTemplate>                                       
            </asp:TemplateField>
        </Columns>        
    </asp:GridView>

</div>
